package lab6_Adapter_FigGeometrice;

public class Patrat implements Poligon{
	public Punct a;
	public Punct b;
	public Punct c;
	public Punct d;
	
	public Patrat(Punct a, Punct b, Punct c, Punct d) {
		super();
		this.a = a;
		this.b = b;
		this.c = c;
		this.d = d;
	}
	public double perimetru()
	{
		return 4*a.distanta(b);
	}
	public double arie()
	{
		@SuppressWarnings("unused")
		double sp=this.perimetru();
		return a.distanta(b)*a.distanta(b);
	}
}
